Exam I date:
Thursday March 12, 2026

- Chapter 4: writing classes
Example#1: 
Main.java
BankAccount.java

-------------------------------------------
AI workflow in your life:
1. Replace google with ChatGPT
2. Let ChatGPT be your coach
3. Let ChatGPT be your worker
4. Come up with a system (Prompts)
5. AI as an infrastructure (AI Engineering) 
Zapier, n8n, ...
---------------------------------------------

Chapter 5: Conditional statements

if, if else, switch

int age = 18;
if(age > 20) {
	System.out.println("You can vote");
}

Boolean expression: it is an expression that is either true or false

int val1 = 12, val2 = 12;
if(val1 == val2) {
	System.out.println("They are equal");
}

if(val1 != val2) {
	System.out.println("They are not equal);
}

String str1 = "hi", str2 = "hi";
if(str1.equals(str2) == true) // <=> if(str1.equals(str2))

>, >=, <, <=

char letter1 = 'a', letter2 = 'A';
if(letter1 > letter2) // <=> true
if(letter1 >= 'a' && letter1 <= 'z') // true if letter1 holds a lowercase letter

char letter

if(letter == 'a' || letter == 'e' || letter == 'o' || letter == 'u' || letter == 'i' ||
letter == 'A' || letter == 'E' || letter == 'O' || letter == 'U' || letter == 'I')

String vowels = "aeouiAEOUI";
char letter = 'a';
if(vowels.contains(letter)) 
// vowels.indexOf(letter): if letter is not in str ---> -1
if(vowels.indexOf(letter) != -1) // True if letter is a vowel and false otherwise

int val = 13;
if(val % 2 != 0) // True if val is odd

- if - else
if() {

} else {

}

Example#2: Wages.java




































